package com.erp.gather.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 商品分类标签;参考数据字典ERP_PRODUCT_CLASSIFY业务对象 erp_product_classify
 *
 * @author erp
 * @date 2023-03-07
 */

@Data
public class ErpProductClassifyBo {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 标签代码
     */
    @NotBlank(message = "标签代码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 标签名称
     */
    @NotBlank(message = "标签名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 商品数量
     */
    private Long count;


}
